<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<meta name="viewport" content="width=1000, initial-scale=1.0, maximum-scale=1.0">
	    <!-- Loading Bootstrap -->
	    <link href="./Public/Admin/Flat/dist/css/vendor/bootstrap.min.css" rel="stylesheet">
	    <!-- Loading Flat UI -->
	    <link href="./Public/Admin/Flat/dist/css/flat-ui.css" rel="stylesheet">
	    <link href="./Public/Admin/Flat/docs/assets/css/demo.css" rel="stylesheet">
	    <link rel="shortcut icon" href="./Public/Admin/Flat/img/favicon.ico">
	    <!-- HTML5 shim, for IE6-8 support of HTML5 elements. All other JS at the end of file. -->
	    <!--[if lt IE 9]>
	      <script src="dist/js/vendor/html5shiv.js"></script>
	      <script src="dist/js/vendor/respond.min.js"></script>
	    <![endif]-->
	</head>
	<body>
		<form action="" method="post">
	
		  <div class="alert alert-success">添加分类</div>
		<div class="form-group">
			<label for="exampleInputEmail1">分类名称</label>
			<input id="exampleInputEmail1" class="form-control" type="text"  required="" name="cate_name" value="<?php echo $olddata['cate_name']?>" placeholder="请输入分类名称">
		</div>
		<div class="form-group">
			<label for="exampleInputEmail1">所属分类</label>
		<select name="cate_pid" class="form-control">
			<option value="0">顶级分类</option>
			<?php foreach ($catedata as $k=>$v){?>
				<option value="<?php echo $v['cate_id']?>"
	<?php if($olddata['cate_pid']==$v['cate_id']){?>
                 selected 
               <?php }?>><?php echo $v['_cate_name']?></option>
				<?php }?>
         </select>
		</div>
		<div class="form-group">
			<label for="exampleInputEmail1">所属类型</label>
			<select name="cate_type_id" class="form-control">

				<?php foreach ($typedata as $key=>$value){?>
				<option value="<?php echo $value['type_id']?>" <?php if($olddata['type_id']==$value['type_id']){?>
                 selected 
               <?php }?>><?php echo $value['type_name']?></option>				
				<?php }?>
			</select>
		</div>
		
		<div class="form-group">
			<label for="exampleInputEmail1">分类排序</label>
			<input id="exampleInputEmail1" class="form-control" type="text" required="" name="cate_sort" value="100">
		</div>
		<input type="hidden" name="cate_id" value="<?php echo $olddata['cate_id']?>" />
		<button class="btn btn-primary btn-block" type="submit"> 确定 </button>
		 
		</form>
	</body>
</html>

